Ext.define('CMS.views.logup.LogupWinLink',{
    extend:'Ext.window.Window',

    requires:[
      'CMS.controllers.logup.LogupWinLinkController'
    ],

    xtype:'LogupWinLink',
    controller:'LogupWinLinkController',

    autoShow:true,
    height:300,
    width:360,
    layout:{
        type:'fit'
    },
    title:'连接测试',
    iconCls: 'fa fa-key fa-lg',
    closeAction: 'hide',
    closable: false,
    draggable: false,
    resizable: false,

    items:[
        {
            xtype:'form',      //可能会出问题
            reference:'logupLinkForm', //可能会出问题
            bodyPadding:15,
            defaults:{
                xtype:'textfield',
                anchor:'100%',
                labelWidth:70,
                allowBlank:false,
                msgTarget:'side',
                listeners:{
                    specialKey:'onEnterPress'
                }
            },
            items:[
                {
                    name:'aliArea',
                    fieldLabel:'区域'
                },
                {
                    name:'aliAccount',
                    fieldLabel:'第三方云平台账号'
                },
                {
                    inputType:'password',
                    name:'aliPwd',
                    fieldLabel:'密码'
                }
            ]
        }
    ],
    dockedItems:[
        {
            xtype:'toolbar',
            dock:'bottom',
            items:[
                '->',
                {
                    xtype:'button',
                    iconCls:'fa fa-sign-in fa-lg',
                    text:'测试连接',
                    formBind:true,
                    handler:'onLinkButtonClick'
                },
                {
                xtype:'button',
                    text:'返回',
                    handler:'onLinkReturnButtonClick'
                }
            ]
        }
    ]


})